/**
 * @summary 管理员模块
 * @module questions
 * @author hmmmm
 */

 import * as usersApi from '@/api/hmmm/users.js'

 const state = {
    usersList: [],
 }
 const mutations = {
  UPDATE_USERS_LIST(state, newValue) {
     state.usersList = newValue
   }
 }

 const actions = {
   async uptateUsersList({ commit }) {
     const res = await usersApi.Administrator()
     console.log('管理员模块',res);
     commit('UPDATE_USERS_LIST', res)
   }
 }

 export default {
   namespaced: true,
   state,
   mutations,
   actions,
 }
